<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>响应式布局</title>
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="../bootstrap/css/bootstrap-theme.css">
    <script src="../jquery-3.2.1.min.js"></script>
    <script src="../bootstrap/js/bootstrap.js"></script>


    <style type="text/css">

        .test{
            width: 500px;
            height:300px;
            background-color: red;
        }
        .test1{
            height:300px;
            background-color: red;
        }
        @media screen and (max-width: 1500px) and (min-width: 700px) {
            .test{
                width: 100%;
                background-color: blue;
            }

        }
    </style>

</head>
<body>
<div class="test"></div>
<div class="test1 col-lg-3 col-md-4 col-sm-6 col-xs-12 col-lg-offset-3 col-md-2"></div>
</body>
</html>